//
// Created by zing on 5/17/2020.
//

#include <iostream>
#include <cstring>

using namespace std;

int main() {
    string s1("aaaaaaaaaa"), s2("bbbbbbbbbb");
    if (s1 == s2)
        cout << "same string." << endl;
    else if (s1 > s2)
        cout << "aaaaaaaaaa > bbbbbbbbbb" << endl;
    else
        cout << "aaaaaaaaaa < bbbbbbbbbb" << endl;

    cout << "=========" << endl;

    const char *cs1 = "aaaaaaaaaa";
    const char *cs2 = "bbbbbbbbbb";
    auto result = strcmp(cs1, cs2);
    if (result == 0)
        cout << "same string." << endl;
    else if (result < 0)
        cout << "aaaaaaaaaa < bbbbbbbbbb" << endl;
    else
        cout << "aaaaaaaaaa > bbbbbbbbbb" << endl;

    return 0;
}